package com.xiaotu.emoji;

import cn.hutool.core.util.ObjectUtil;

/**
 * @author zhangxiao
 * @create 2021-09-24 15:47
 */
public class EmojiUtil {

    public static String filterEmoji(String source) {
        if (ObjectUtil.isNotEmpty(source))
            return source.replaceAll("[\ud800\udc00-\udbff\udfff\ud800-\udfff]","");
        return null;
    }

}
